/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Principal.java
 *
 * Created on 28-dic-2012, 20:38:35
 */
package gui;

import com.sun.awt.AWTUtilities;
import controladores.ControladorPrincipal;
import java.awt.Desktop;
import java.awt.Image;
import java.awt.Shape;
import java.awt.geom.RoundRectangle2D;
import java.io.File;
import java.io.IOException;
import java.net.URI;
import javax.swing.ImageIcon;
import utilidades.JFrameConFondo;

/**
 *
 * @author NiCo
 */
public class Principal extends JFrameConFondo {

    private boolean casos = false;
    private boolean intervenciones = false;
    private boolean llamados = false;
    private boolean estadisticas = false;
    private boolean ayuda = false;
    private Image icono = new ImageIcon(getClass().getResource("/imagenes/logo.png")).getImage();

    /** Creates new form Principal */
    public Principal() {
        initComponents();
        setBounds(0, 0, 730, 398);
        setImagen("/imagenes/fondo.png");
        pnlCasos.setImagen("/imagenes/casos-fondo.png");
        pnlCasos.setVisible(false);
        pnlIntervenciones.setImagen("/imagenes/intervenciones-fondo.png");
        pnlIntervenciones.setVisible(false);
        pnlLlamadas.setImagen("/imagenes/llamados-fondo.png");
        pnlLlamadas.setVisible(false);
        pnlEstadisticas.setImagen("/imagenes/estadisticas-fondo.png");
        pnlEstadisticas.setVisible(false);
        pnlAyuda.setImagen("/imagenes/ayuda-fondo.png");
        pnlAyuda.setVisible(false);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        btnMinimizar = new javax.swing.JButton();
        btnCerrar = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        btnCasos = new javax.swing.JButton();
        btnIntervenciones = new javax.swing.JButton();
        btnLlamados = new javax.swing.JButton();
        btnEstadisticas = new javax.swing.JButton();
        btnAyuda = new javax.swing.JButton();
        jLayeredPane1 = new javax.swing.JLayeredPane();
        pnlEstadisticas = new utilidades.JPanelConFondo();
        btnInformeLlamados1 = new javax.swing.JButton();
        btnImpimirPlanilla1 = new javax.swing.JButton();
        btnModificarLlamado1 = new javax.swing.JButton();
        btnEliminarLlamado1 = new javax.swing.JButton();
        btnNuevoLlamado1 = new javax.swing.JButton();
        pnlIntervenciones = new utilidades.JPanelConFondo();
        btnNuevoSeguimiento = new javax.swing.JButton();
        btnNuevaIntervencion = new javax.swing.JButton();
        btnModificarIntervencion = new javax.swing.JButton();
        btnModificarSeguimiento = new javax.swing.JButton();
        btnEliminarSeguimiento = new javax.swing.JButton();
        btnEliminarIntervencion = new javax.swing.JButton();
        pnlLlamadas = new utilidades.JPanelConFondo();
        btnNuevoLlamado = new javax.swing.JButton();
        btnInformeLlamados = new javax.swing.JButton();
        btnModificarLlamado = new javax.swing.JButton();
        btnImpimirPlanilla = new javax.swing.JButton();
        btnEliminarLlamado = new javax.swing.JButton();
        pnlCasos = new utilidades.JPanelConFondo();
        btnNuevoCaso = new javax.swing.JButton();
        btnModificarCaso = new javax.swing.JButton();
        btnModificarActualizacion = new javax.swing.JButton();
        btnNuevaActualizacion = new javax.swing.JButton();
        btnConsultarCaso = new javax.swing.JButton();
        btnModificarDatosPersonales = new javax.swing.JButton();
        btnManual8 = new javax.swing.JButton();
        pnlAyuda = new utilidades.JPanelConFondo();
        btnManual = new javax.swing.JButton();
        btnAcercade = new javax.swing.JButton();
        jButton1 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setResizable(false);

        btnMinimizar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/minimizar-normal.png"))); // NOI18N
        btnMinimizar.setBorder(null);
        btnMinimizar.setBorderPainted(false);
        btnMinimizar.setFocusPainted(false);
        btnMinimizar.setName("btnMinimizar"); // NOI18N
        btnMinimizar.setOpaque(false);
        btnMinimizar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btnMinimizarMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                btnMinimizarMouseExited(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                btnMinimizarMousePressed(evt);
            }
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                btnMinimizarMouseReleased(evt);
            }
        });
        btnMinimizar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMinimizarActionPerformed(evt);
            }
        });

        btnCerrar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/cerrar-normal.png"))); // NOI18N
        btnCerrar.setBorder(null);
        btnCerrar.setBorderPainted(false);
        btnCerrar.setFocusPainted(false);
        btnCerrar.setName("btnCerrar"); // NOI18N
        btnCerrar.setOpaque(false);
        btnCerrar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btnCerrarMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                btnCerrarMouseExited(evt);
            }
            public void mousePressed(java.awt.event.MouseEvent evt) {
                btnCerrarMousePressed(evt);
            }
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                btnCerrarMouseReleased(evt);
            }
        });
        btnCerrar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCerrarActionPerformed(evt);
            }
        });

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/titulo.png"))); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N

        jPanel1.setBackground(new java.awt.Color(255, 255, 255));
        jPanel1.setName("jPanel1"); // NOI18N
        jPanel1.setOpaque(false);
        jPanel1.setLayout(new java.awt.GridLayout(1, 0));

        btnCasos.setBackground(new java.awt.Color(255, 255, 255));
        btnCasos.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/casos.png"))); // NOI18N
        btnCasos.setBorder(null);
        btnCasos.setBorderPainted(false);
        btnCasos.setFocusPainted(false);
        btnCasos.setName("btnCasos"); // NOI18N
        btnCasos.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btnCasosMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                btnCasosMouseExited(evt);
            }
        });
        btnCasos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCasosActionPerformed(evt);
            }
        });
        jPanel1.add(btnCasos);

        btnIntervenciones.setBackground(new java.awt.Color(255, 255, 255));
        btnIntervenciones.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/intervenciones.png"))); // NOI18N
        btnIntervenciones.setBorderPainted(false);
        btnIntervenciones.setFocusPainted(false);
        btnIntervenciones.setName("btnIntervenciones"); // NOI18N
        btnIntervenciones.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btnIntervencionesMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                btnIntervencionesMouseExited(evt);
            }
        });
        btnIntervenciones.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnIntervencionesActionPerformed(evt);
            }
        });
        jPanel1.add(btnIntervenciones);

        btnLlamados.setBackground(new java.awt.Color(255, 255, 255));
        btnLlamados.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/llamados.png"))); // NOI18N
        btnLlamados.setBorder(null);
        btnLlamados.setBorderPainted(false);
        btnLlamados.setFocusPainted(false);
        btnLlamados.setName("btnLlamados"); // NOI18N
        btnLlamados.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btnLlamadosMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                btnLlamadosMouseExited(evt);
            }
        });
        btnLlamados.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnLlamadosActionPerformed(evt);
            }
        });
        jPanel1.add(btnLlamados);

        btnEstadisticas.setBackground(new java.awt.Color(255, 255, 255));
        btnEstadisticas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/estadisticas.png"))); // NOI18N
        btnEstadisticas.setBorder(null);
        btnEstadisticas.setBorderPainted(false);
        btnEstadisticas.setFocusPainted(false);
        btnEstadisticas.setName("btnEstadisticas"); // NOI18N
        btnEstadisticas.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btnEstadisticasMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                btnEstadisticasMouseExited(evt);
            }
        });
        btnEstadisticas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEstadisticasActionPerformed(evt);
            }
        });
        jPanel1.add(btnEstadisticas);

        btnAyuda.setBackground(new java.awt.Color(255, 255, 255));
        btnAyuda.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/ayuda.png"))); // NOI18N
        btnAyuda.setBorder(null);
        btnAyuda.setBorderPainted(false);
        btnAyuda.setFocusPainted(false);
        btnAyuda.setName("btnAyuda"); // NOI18N
        btnAyuda.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btnAyudaMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                btnAyudaMouseExited(evt);
            }
        });
        btnAyuda.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAyudaActionPerformed(evt);
            }
        });
        jPanel1.add(btnAyuda);

        jLayeredPane1.setBackground(new java.awt.Color(236, 221, 124));
        jLayeredPane1.setName("jLayeredPane1"); // NOI18N

        pnlEstadisticas.setBackground(new java.awt.Color(255, 204, 204));
        pnlEstadisticas.setName("pnlEstadisticas"); // NOI18N

        btnInformeLlamados1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/menu-estadistica-intervenci.png"))); // NOI18N
        btnInformeLlamados1.setBorder(null);
        btnInformeLlamados1.setBorderPainted(false);
        btnInformeLlamados1.setFocusPainted(false);
        btnInformeLlamados1.setName("btnInformeLlamados1"); // NOI18N
        btnInformeLlamados1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnInformeLlamados1ActionPerformed(evt);
            }
        });

        btnImpimirPlanilla1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/menu-estadistica-otros.png"))); // NOI18N
        btnImpimirPlanilla1.setBorder(null);
        btnImpimirPlanilla1.setBorderPainted(false);
        btnImpimirPlanilla1.setFocusPainted(false);
        btnImpimirPlanilla1.setName("btnImpimirPlanilla1"); // NOI18N
        btnImpimirPlanilla1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnImpimirPlanilla1ActionPerformed(evt);
            }
        });

        btnModificarLlamado1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/menu-estadistica-ninio.png"))); // NOI18N
        btnModificarLlamado1.setBorder(null);
        btnModificarLlamado1.setFocusPainted(false);
        btnModificarLlamado1.setName("btnModificarLlamado1"); // NOI18N
        btnModificarLlamado1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnModificarLlamado1ActionPerformed(evt);
            }
        });

        btnEliminarLlamado1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/menu-estadistica-geografica.png"))); // NOI18N
        btnEliminarLlamado1.setBorder(null);
        btnEliminarLlamado1.setFocusPainted(false);
        btnEliminarLlamado1.setName("btnEliminarLlamado1"); // NOI18N
        btnEliminarLlamado1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEliminarLlamado1ActionPerformed(evt);
            }
        });

        btnNuevoLlamado1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/menu-estadistica-motivo.png"))); // NOI18N
        btnNuevoLlamado1.setBorder(null);
        btnNuevoLlamado1.setFocusPainted(false);
        btnNuevoLlamado1.setName("btnNuevoLlamado1"); // NOI18N
        btnNuevoLlamado1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNuevoLlamado1ActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout pnlEstadisticasLayout = new org.jdesktop.layout.GroupLayout(pnlEstadisticas);
        pnlEstadisticas.setLayout(pnlEstadisticasLayout);
        pnlEstadisticasLayout.setHorizontalGroup(
            pnlEstadisticasLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, pnlEstadisticasLayout.createSequentialGroup()
                .add(26, 26, 26)
                .add(pnlEstadisticasLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(btnModificarLlamado1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(btnNuevoLlamado1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(29, 29, 29)
                .add(btnEliminarLlamado1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 29, Short.MAX_VALUE)
                .add(pnlEstadisticasLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(btnImpimirPlanilla1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(btnInformeLlamados1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(26, 26, 26))
        );
        pnlEstadisticasLayout.setVerticalGroup(
            pnlEstadisticasLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(pnlEstadisticasLayout.createSequentialGroup()
                .add(pnlEstadisticasLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(pnlEstadisticasLayout.createSequentialGroup()
                        .add(20, 20, 20)
                        .add(pnlEstadisticasLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                            .add(pnlEstadisticasLayout.createSequentialGroup()
                                .add(btnInformeLlamados1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                                .add(btnImpimirPlanilla1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(pnlEstadisticasLayout.createSequentialGroup()
                                .add(btnNuevoLlamado1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                                .add(btnModificarLlamado1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))
                    .add(pnlEstadisticasLayout.createSequentialGroup()
                        .add(49, 49, 49)
                        .add(btnEliminarLlamado1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(19, Short.MAX_VALUE))
        );

        pnlEstadisticas.setBounds(0, 0, 710, 150);
        jLayeredPane1.add(pnlEstadisticas, javax.swing.JLayeredPane.DEFAULT_LAYER);

        pnlIntervenciones.setBackground(new java.awt.Color(255, 204, 204));
        pnlIntervenciones.setName("pnlIntervenciones"); // NOI18N

        btnNuevoSeguimiento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/menu-nuevo-seguimiento.png"))); // NOI18N
        btnNuevoSeguimiento.setBorder(null);
        btnNuevoSeguimiento.setFocusPainted(false);
        btnNuevoSeguimiento.setName("btnNuevoSeguimiento"); // NOI18N
        btnNuevoSeguimiento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNuevoSeguimientoActionPerformed(evt);
            }
        });

        btnNuevaIntervencion.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/menu-nueva-intervencion.png"))); // NOI18N
        btnNuevaIntervencion.setBorder(null);
        btnNuevaIntervencion.setBorderPainted(false);
        btnNuevaIntervencion.setFocusPainted(false);
        btnNuevaIntervencion.setName("btnNuevaIntervencion"); // NOI18N
        btnNuevaIntervencion.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNuevaIntervencionActionPerformed(evt);
            }
        });

        btnModificarIntervencion.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/menu-modificar-intervencion.png"))); // NOI18N
        btnModificarIntervencion.setBorder(null);
        btnModificarIntervencion.setBorderPainted(false);
        btnModificarIntervencion.setFocusPainted(false);
        btnModificarIntervencion.setName("btnModificarIntervencion"); // NOI18N
        btnModificarIntervencion.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnModificarIntervencionActionPerformed(evt);
            }
        });

        btnModificarSeguimiento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/menu-modificar-seguimiento.png"))); // NOI18N
        btnModificarSeguimiento.setBorder(null);
        btnModificarSeguimiento.setFocusPainted(false);
        btnModificarSeguimiento.setName("btnModificarSeguimiento"); // NOI18N
        btnModificarSeguimiento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnModificarSeguimientoActionPerformed(evt);
            }
        });

        btnEliminarSeguimiento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/menu-eliminar-seguimiento.png"))); // NOI18N
        btnEliminarSeguimiento.setBorder(null);
        btnEliminarSeguimiento.setFocusPainted(false);
        btnEliminarSeguimiento.setName("btnEliminarSeguimiento"); // NOI18N
        btnEliminarSeguimiento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEliminarSeguimientoActionPerformed(evt);
            }
        });

        btnEliminarIntervencion.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/menu-eliminar-intervencion.png"))); // NOI18N
        btnEliminarIntervencion.setBorder(null);
        btnEliminarIntervencion.setBorderPainted(false);
        btnEliminarIntervencion.setFocusPainted(false);
        btnEliminarIntervencion.setName("btnEliminarIntervencion"); // NOI18N
        btnEliminarIntervencion.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEliminarIntervencionActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout pnlIntervencionesLayout = new org.jdesktop.layout.GroupLayout(pnlIntervenciones);
        pnlIntervenciones.setLayout(pnlIntervencionesLayout);
        pnlIntervencionesLayout.setHorizontalGroup(
            pnlIntervencionesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(pnlIntervencionesLayout.createSequentialGroup()
                .add(85, 85, 85)
                .add(pnlIntervencionesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(pnlIntervencionesLayout.createSequentialGroup()
                        .add(btnEliminarSeguimiento, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(139, 139, 139)
                        .add(btnEliminarIntervencion, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(pnlIntervencionesLayout.createSequentialGroup()
                        .add(btnModificarSeguimiento, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(139, 139, 139)
                        .add(btnModificarIntervencion, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(pnlIntervencionesLayout.createSequentialGroup()
                        .add(btnNuevoSeguimiento, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(139, 139, 139)
                        .add(btnNuevaIntervencion, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(86, Short.MAX_VALUE))
        );
        pnlIntervencionesLayout.setVerticalGroup(
            pnlIntervencionesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(pnlIntervencionesLayout.createSequentialGroup()
                .add(20, 20, 20)
                .add(pnlIntervencionesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(btnNuevaIntervencion, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(btnNuevoSeguimiento, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(pnlIntervencionesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(btnModificarIntervencion, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(btnModificarSeguimiento, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(pnlIntervencionesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(btnEliminarIntervencion, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(btnEliminarSeguimiento, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(18, Short.MAX_VALUE))
        );

        pnlIntervenciones.setBounds(0, 0, 710, 210);
        jLayeredPane1.add(pnlIntervenciones, javax.swing.JLayeredPane.DEFAULT_LAYER);

        pnlLlamadas.setBackground(new java.awt.Color(255, 204, 204));
        pnlLlamadas.setName("pnlLlamadas"); // NOI18N

        btnNuevoLlamado.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/menu-nuevo-llamado.png"))); // NOI18N
        btnNuevoLlamado.setBorder(null);
        btnNuevoLlamado.setFocusPainted(false);
        btnNuevoLlamado.setName("btnNuevoLlamado"); // NOI18N
        btnNuevoLlamado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNuevoLlamadoActionPerformed(evt);
            }
        });

        btnInformeLlamados.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/menu-informe-llamado.png"))); // NOI18N
        btnInformeLlamados.setBorder(null);
        btnInformeLlamados.setBorderPainted(false);
        btnInformeLlamados.setFocusPainted(false);
        btnInformeLlamados.setName("btnInformeLlamados"); // NOI18N
        btnInformeLlamados.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnInformeLlamadosActionPerformed(evt);
            }
        });

        btnModificarLlamado.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/menu-modificar-llamado.png"))); // NOI18N
        btnModificarLlamado.setBorder(null);
        btnModificarLlamado.setFocusPainted(false);
        btnModificarLlamado.setName("btnModificarLlamado"); // NOI18N
        btnModificarLlamado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnModificarLlamadoActionPerformed(evt);
            }
        });

        btnImpimirPlanilla.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/menu-imprimir-llamado.png"))); // NOI18N
        btnImpimirPlanilla.setBorder(null);
        btnImpimirPlanilla.setBorderPainted(false);
        btnImpimirPlanilla.setFocusPainted(false);
        btnImpimirPlanilla.setName("btnImpimirPlanilla"); // NOI18N
        btnImpimirPlanilla.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnImpimirPlanillaActionPerformed(evt);
            }
        });

        btnEliminarLlamado.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/menu-eliminar-llamado.png"))); // NOI18N
        btnEliminarLlamado.setBorder(null);
        btnEliminarLlamado.setFocusPainted(false);
        btnEliminarLlamado.setName("btnEliminarLlamado"); // NOI18N
        btnEliminarLlamado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEliminarLlamadoActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout pnlLlamadasLayout = new org.jdesktop.layout.GroupLayout(pnlLlamadas);
        pnlLlamadas.setLayout(pnlLlamadasLayout);
        pnlLlamadasLayout.setHorizontalGroup(
            pnlLlamadasLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, pnlLlamadasLayout.createSequentialGroup()
                .add(26, 26, 26)
                .add(pnlLlamadasLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(btnModificarLlamado, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(btnNuevoLlamado, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(29, 29, 29)
                .add(btnEliminarLlamado, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 29, Short.MAX_VALUE)
                .add(pnlLlamadasLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(btnImpimirPlanilla, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(btnInformeLlamados, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(26, 26, 26))
        );
        pnlLlamadasLayout.setVerticalGroup(
            pnlLlamadasLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(pnlLlamadasLayout.createSequentialGroup()
                .add(pnlLlamadasLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(pnlLlamadasLayout.createSequentialGroup()
                        .add(20, 20, 20)
                        .add(pnlLlamadasLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                            .add(pnlLlamadasLayout.createSequentialGroup()
                                .add(btnInformeLlamados, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                                .add(btnImpimirPlanilla, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(pnlLlamadasLayout.createSequentialGroup()
                                .add(btnNuevoLlamado, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                                .add(btnModificarLlamado, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))
                    .add(pnlLlamadasLayout.createSequentialGroup()
                        .add(49, 49, 49)
                        .add(btnEliminarLlamado, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(19, Short.MAX_VALUE))
        );

        pnlLlamadas.setBounds(0, 0, 710, 150);
        jLayeredPane1.add(pnlLlamadas, javax.swing.JLayeredPane.DEFAULT_LAYER);

        pnlCasos.setBackground(new java.awt.Color(204, 204, 255));
        pnlCasos.setName("pnlCasos"); // NOI18N

        btnNuevoCaso.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/menu-nuevo-caso.png"))); // NOI18N
        btnNuevoCaso.setBorder(null);
        btnNuevoCaso.setFocusPainted(false);
        btnNuevoCaso.setName("btnNuevoCaso"); // NOI18N
        btnNuevoCaso.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNuevoCasoActionPerformed(evt);
            }
        });

        btnModificarCaso.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/menu-modficar-caso.png"))); // NOI18N
        btnModificarCaso.setBorder(null);
        btnModificarCaso.setFocusPainted(false);
        btnModificarCaso.setName("btnModificarCaso"); // NOI18N
        btnModificarCaso.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnModificarCasoActionPerformed(evt);
            }
        });

        btnModificarActualizacion.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/menu-modificar-actualizacio.png"))); // NOI18N
        btnModificarActualizacion.setAutoscrolls(true);
        btnModificarActualizacion.setBorder(null);
        btnModificarActualizacion.setFocusPainted(false);
        btnModificarActualizacion.setName("btnModificarActualizacion"); // NOI18N
        btnModificarActualizacion.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnModificarActualizacionActionPerformed(evt);
            }
        });

        btnNuevaActualizacion.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/menu-nueva-actualizacion.png"))); // NOI18N
        btnNuevaActualizacion.setAutoscrolls(true);
        btnNuevaActualizacion.setBorder(null);
        btnNuevaActualizacion.setFocusPainted(false);
        btnNuevaActualizacion.setName("btnNuevaActualizacion"); // NOI18N
        btnNuevaActualizacion.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNuevaActualizacionActionPerformed(evt);
            }
        });

        btnConsultarCaso.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/menu-consultar-caso.png"))); // NOI18N
        btnConsultarCaso.setAutoscrolls(true);
        btnConsultarCaso.setBorder(null);
        btnConsultarCaso.setFocusPainted(false);
        btnConsultarCaso.setName("btnConsultarCaso"); // NOI18N
        btnConsultarCaso.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnConsultarCasoActionPerformed(evt);
            }
        });

        btnModificarDatosPersonales.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/menu-modficar-datos.png"))); // NOI18N
        btnModificarDatosPersonales.setAutoscrolls(true);
        btnModificarDatosPersonales.setBorder(null);
        btnModificarDatosPersonales.setFocusPainted(false);
        btnModificarDatosPersonales.setName("btnModificarDatosPersonales"); // NOI18N
        btnModificarDatosPersonales.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnModificarDatosPersonalesActionPerformed(evt);
            }
        });

        btnManual8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/menu-informe-caso.png"))); // NOI18N
        btnManual8.setAutoscrolls(true);
        btnManual8.setBorder(null);
        btnManual8.setFocusPainted(false);
        btnManual8.setName("btnManual8"); // NOI18N
        btnManual8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnManual8ActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout pnlCasosLayout = new org.jdesktop.layout.GroupLayout(pnlCasos);
        pnlCasos.setLayout(pnlCasosLayout);
        pnlCasosLayout.setHorizontalGroup(
            pnlCasosLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(pnlCasosLayout.createSequentialGroup()
                .add(23, 23, 23)
                .add(pnlCasosLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(pnlCasosLayout.createSequentialGroup()
                        .add(pnlCasosLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(btnNuevoCaso, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(btnModificarCaso, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .add(29, 29, 29)
                        .add(pnlCasosLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(btnNuevaActualizacion, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(btnModificarActualizacion, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 29, Short.MAX_VALUE)
                        .add(pnlCasosLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(btnModificarDatosPersonales, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(btnManual8, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .add(29, 29, 29))
                    .add(pnlCasosLayout.createSequentialGroup()
                        .add(btnConsultarCaso, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(487, Short.MAX_VALUE))))
        );
        pnlCasosLayout.setVerticalGroup(
            pnlCasosLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, pnlCasosLayout.createSequentialGroup()
                .add(20, 20, 20)
                .add(btnNuevoCaso, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(btnModificarCaso, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(btnConsultarCaso, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(18, 18, 18))
            .add(pnlCasosLayout.createSequentialGroup()
                .add(48, 48, 48)
                .add(pnlCasosLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(pnlCasosLayout.createSequentialGroup()
                        .add(btnModificarDatosPersonales, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                        .add(btnManual8, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(pnlCasosLayout.createSequentialGroup()
                        .add(btnNuevaActualizacion, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                        .add(btnModificarActualizacion, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(51, Short.MAX_VALUE))
        );

        pnlCasos.setBounds(0, 0, 710, 210);
        jLayeredPane1.add(pnlCasos, javax.swing.JLayeredPane.DEFAULT_LAYER);

        pnlAyuda.setBackground(new java.awt.Color(153, 255, 153));
        pnlAyuda.setName("pnlAyuda"); // NOI18N

        btnManual.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/menu-manual.png"))); // NOI18N
        btnManual.setBorder(null);
        btnManual.setFocusPainted(false);
        btnManual.setName("btnManual"); // NOI18N
        btnManual.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnManualActionPerformed(evt);
            }
        });

        btnAcercade.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/menu-acercade.png"))); // NOI18N
        btnAcercade.setBorder(null);
        btnAcercade.setBorderPainted(false);
        btnAcercade.setFocusPainted(false);
        btnAcercade.setName("btnAcercade"); // NOI18N
        btnAcercade.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAcercadeActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout pnlAyudaLayout = new org.jdesktop.layout.GroupLayout(pnlAyuda);
        pnlAyuda.setLayout(pnlAyudaLayout);
        pnlAyudaLayout.setHorizontalGroup(
            pnlAyudaLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(pnlAyudaLayout.createSequentialGroup()
                .add(85, 85, 85)
                .add(btnManual, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(139, 139, 139)
                .add(btnAcercade, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 200, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(86, Short.MAX_VALUE))
        );
        pnlAyudaLayout.setVerticalGroup(
            pnlAyudaLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(pnlAyudaLayout.createSequentialGroup()
                .add(20, 20, 20)
                .add(pnlAyudaLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(btnAcercade, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(btnManual, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pnlAyuda.setBounds(0, 0, 710, 80);
        jLayeredPane1.add(pnlAyuda, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/localizacion-geografica.png"))); // NOI18N
        jButton1.setBorderPainted(false);
        jButton1.setFocusPainted(false);
        jButton1.setName("jButton1"); // NOI18N
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(layout.createSequentialGroup()
                        .addContainerGap()
                        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(layout.createSequentialGroup()
                                .add(246, 246, 246)
                                .add(jLabel1)
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 160, Short.MAX_VALUE)
                                .add(btnMinimizar)
                                .add(6, 6, 6)
                                .add(btnCerrar))
                            .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 710, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(jLayeredPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 710, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                    .add(layout.createSequentialGroup()
                        .add(215, 215, 215)
                        .add(jButton1)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .addContainerGap()
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 30, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(btnMinimizar)
                    .add(btnCerrar))
                .add(18, 18, 18)
                .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 39, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(jLayeredPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 217, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jButton1)
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btnMinimizarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMinimizarActionPerformed
        this.setExtendedState(Principal.ICONIFIED);
    }//GEN-LAST:event_btnMinimizarActionPerformed

    private void btnCerrarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCerrarActionPerformed
        ControladorPrincipal.getInstance().cerrarEntity();
        System.exit(0);
    }//GEN-LAST:event_btnCerrarActionPerformed

    private void btnIntervencionesMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnIntervencionesMouseEntered
        btnIntervenciones.setIcon(new ImageIcon(getClass().getResource("/imagenes/intervenciones-activo.png")));
    }//GEN-LAST:event_btnIntervencionesMouseEntered

    private void btnIntervencionesMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnIntervencionesMouseExited
        if (!intervenciones) {
            btnIntervenciones.setIcon(new ImageIcon(getClass().getResource("/imagenes/intervenciones.png")));
        }
    }//GEN-LAST:event_btnIntervencionesMouseExited

    private void btnIntervencionesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnIntervencionesActionPerformed
        if (!intervenciones) {
            activarBoton(2);
        } else {
            intervenciones = false;
            btnIntervenciones.setIcon(new ImageIcon(getClass().getResource("/imagenes/intervenciones.png")));
            pnlIntervenciones.setVisible(false);
        }
    }//GEN-LAST:event_btnIntervencionesActionPerformed

    private void btnCasosMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCasosMouseEntered
        btnCasos.setIcon(new ImageIcon(getClass().getResource("/imagenes/casos-activo.png")));
    }//GEN-LAST:event_btnCasosMouseEntered

    private void btnCasosMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCasosMouseExited
        if (!casos) {
            btnCasos.setIcon(new ImageIcon(getClass().getResource("/imagenes/casos.png")));
        }
    }//GEN-LAST:event_btnCasosMouseExited

    private void btnCasosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCasosActionPerformed
        if (!casos) {
            activarBoton(1);
        } else {
            casos = false;
            btnCasos.setIcon(new ImageIcon(getClass().getResource("/imagenes/casos.png")));
            pnlCasos.setVisible(false);
        }
    }//GEN-LAST:event_btnCasosActionPerformed

    private void btnLlamadosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnLlamadosActionPerformed
        if (!llamados) {
            activarBoton(3);
        } else {
            llamados = false;
            btnLlamados.setIcon(new ImageIcon(getClass().getResource("/imagenes/llamados.png")));
            pnlLlamadas.setVisible(false);
        }
    }//GEN-LAST:event_btnLlamadosActionPerformed

    private void btnLlamadosMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnLlamadosMouseEntered
        btnLlamados.setIcon(new ImageIcon(getClass().getResource("/imagenes/llamados-activo.png")));
    }//GEN-LAST:event_btnLlamadosMouseEntered

    private void btnLlamadosMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnLlamadosMouseExited
        if (!llamados) {
            btnLlamados.setIcon(new ImageIcon(getClass().getResource("/imagenes/llamados.png")));
        }
    }//GEN-LAST:event_btnLlamadosMouseExited

    private void btnEstadisticasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEstadisticasActionPerformed
        if (!estadisticas) {
            activarBoton(4);
        } else {
            estadisticas = false;
            btnEstadisticas.setIcon(new ImageIcon(getClass().getResource("/imagenes/estadisticas.png")));
            pnlEstadisticas.setVisible(false);
        }
    }//GEN-LAST:event_btnEstadisticasActionPerformed

    private void btnEstadisticasMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnEstadisticasMouseEntered
        btnEstadisticas.setIcon(new ImageIcon(getClass().getResource("/imagenes/estadisticas-activo.png")));
    }//GEN-LAST:event_btnEstadisticasMouseEntered

    private void btnEstadisticasMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnEstadisticasMouseExited
        if (!estadisticas) {
            btnEstadisticas.setIcon(new ImageIcon(getClass().getResource("/imagenes/estadisticas.png")));
        }
    }//GEN-LAST:event_btnEstadisticasMouseExited

    private void btnAyudaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAyudaActionPerformed
        if (!ayuda) {
            activarBoton(5);
        } else {
            ayuda = false;
            btnAyuda.setIcon(new ImageIcon(getClass().getResource("/imagenes/ayuda.png")));
            pnlAyuda.setVisible(false);
        }
    }//GEN-LAST:event_btnAyudaActionPerformed

    private void btnAyudaMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnAyudaMouseEntered
        btnAyuda.setIcon(new ImageIcon(getClass().getResource("/imagenes/ayuda-activo.png")));
    }//GEN-LAST:event_btnAyudaMouseEntered

    private void btnAyudaMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnAyudaMouseExited
        if (!ayuda) {
            btnAyuda.setIcon(new ImageIcon(getClass().getResource("/imagenes/ayuda.png")));
        }
    }//GEN-LAST:event_btnAyudaMouseExited

    private void btnManualActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnManualActionPerformed
        try {
            File pdf = new File("src/utilidades/Manual.pdf");
            Desktop.getDesktop().open(pdf);
        } catch (IOException ex) {
        }
    }//GEN-LAST:event_btnManualActionPerformed

    private void btnCerrarMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCerrarMouseEntered
        btnCerrar.setIcon(new ImageIcon(getClass().getResource("/imagenes/cerrar-activo.png")));
    }//GEN-LAST:event_btnCerrarMouseEntered

    private void btnCerrarMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCerrarMouseExited
        btnCerrar.setIcon(new ImageIcon(getClass().getResource("/imagenes/cerrar-normal.png")));
    }//GEN-LAST:event_btnCerrarMouseExited

    private void btnCerrarMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCerrarMouseReleased
        btnCerrar.setIcon(new ImageIcon(getClass().getResource("/imagenes/cerrar-normal.png")));
    }//GEN-LAST:event_btnCerrarMouseReleased

    private void btnCerrarMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnCerrarMousePressed
        btnCerrar.setIcon(new ImageIcon(getClass().getResource("/imagenes/cerrar-click.png")));
    }//GEN-LAST:event_btnCerrarMousePressed

    private void btnMinimizarMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnMinimizarMouseEntered
        btnMinimizar.setIcon(new ImageIcon(getClass().getResource("/imagenes/minimizar-activo.png")));
    }//GEN-LAST:event_btnMinimizarMouseEntered

    private void btnMinimizarMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnMinimizarMouseExited
        btnMinimizar.setIcon(new ImageIcon(getClass().getResource("/imagenes/minimizar-normal.png")));
    }//GEN-LAST:event_btnMinimizarMouseExited

    private void btnMinimizarMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnMinimizarMouseReleased
        btnMinimizar.setIcon(new ImageIcon(getClass().getResource("/imagenes/minimizar-normal.png")));
    }//GEN-LAST:event_btnMinimizarMouseReleased

    private void btnMinimizarMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnMinimizarMousePressed
        btnMinimizar.setIcon(new ImageIcon(getClass().getResource("/imagenes/minimizar-click.png")));
    }//GEN-LAST:event_btnMinimizarMousePressed

    private void btnAcercadeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAcercadeActionPerformed
        AcercaDe frm = new AcercaDe();
        frm.setLocationRelativeTo(null);
        frm.setIconImage(icono);
        frm.setImagen("/imagenes/fondo.png");
        frm.setVisible(true);
        Shape shape = new RoundRectangle2D.Float(0, 0, frm.getWidth(), frm.getHeight(), 30, 30);
        AWTUtilities.setWindowShape(frm, shape);
    }//GEN-LAST:event_btnAcercadeActionPerformed

    private void btnNuevoLlamadoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNuevoLlamadoActionPerformed
        NuevoLlamado frm = new NuevoLlamado();
        frm.setLocationRelativeTo(null);
        frm.setIconImage(icono);
        frm.setImagen("/imagenes/fondo.png");
        frm.setVisible(true);
        Shape shape = new RoundRectangle2D.Float(0, 0, frm.getWidth(), frm.getHeight(), 30, 30);
        AWTUtilities.setWindowShape(frm, shape);
    }//GEN-LAST:event_btnNuevoLlamadoActionPerformed

    private void btnInformeLlamadosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnInformeLlamadosActionPerformed
        EstadisticaLlamado frm = new EstadisticaLlamado();
        frm.setLocationRelativeTo(null);
        frm.setIconImage(icono);
        frm.setImagen("/imagenes/fondo.png");
        frm.setVisible(true);
        Shape shape = new RoundRectangle2D.Float(0, 0, frm.getWidth(), frm.getHeight(), 30, 30);
        AWTUtilities.setWindowShape(frm, shape);
    }//GEN-LAST:event_btnInformeLlamadosActionPerformed

    private void btnModificarLlamadoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnModificarLlamadoActionPerformed
        ModificarLlamado frm = new ModificarLlamado();
        frm.setLocationRelativeTo(null);
        frm.setIconImage(icono);
        frm.setImagen("/imagenes/fondo.png");
        frm.setVisible(true);
        Shape shape = new RoundRectangle2D.Float(0, 0, frm.getWidth(), frm.getHeight(), 30, 30);
        AWTUtilities.setWindowShape(frm, shape);
    }//GEN-LAST:event_btnModificarLlamadoActionPerformed

    private void btnImpimirPlanillaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnImpimirPlanillaActionPerformed
        ImprimirPlanillaLlamado frm = new ImprimirPlanillaLlamado();
        frm.setLocationRelativeTo(null);
        frm.setIconImage(icono);
        frm.setImagen("/imagenes/fondo.png");
        frm.setVisible(true);
        Shape shape = new RoundRectangle2D.Float(0, 0, frm.getWidth(), frm.getHeight(), 30, 30);
        AWTUtilities.setWindowShape(frm, shape);
    }//GEN-LAST:event_btnImpimirPlanillaActionPerformed

    private void btnNuevoSeguimientoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNuevoSeguimientoActionPerformed
        NuevoSeguimiento frm = new NuevoSeguimiento();
        frm.setLocationRelativeTo(null);
        frm.setIconImage(icono);
        frm.setImagen("/imagenes/fondo.png");
        frm.setVisible(true);
        Shape shape = new RoundRectangle2D.Float(0, 0, frm.getWidth(), frm.getHeight(), 30, 30);
        AWTUtilities.setWindowShape(frm, shape);
    }//GEN-LAST:event_btnNuevoSeguimientoActionPerformed

    private void btnModificarIntervencionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnModificarIntervencionActionPerformed
        BuscarCaso frm = new BuscarCaso(null, "mi");
        frm.setLocationRelativeTo(null);
        frm.setImagen("/imagenes/fondo.png");
        frm.setIconImage(icono);
        frm.setVisible(true);
        Shape shape = new RoundRectangle2D.Float(0, 0, frm.getWidth(), frm.getHeight(), 30, 30);
        AWTUtilities.setWindowShape(frm, shape);
    }//GEN-LAST:event_btnModificarIntervencionActionPerformed

    private void btnEliminarIntervencionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEliminarIntervencionActionPerformed
        BuscarCaso frm = new BuscarCaso(null, "ei");
        frm.setLocationRelativeTo(null);
        frm.setImagen("/imagenes/fondo.png");
        frm.setIconImage(icono);
        frm.setVisible(true);
        Shape shape = new RoundRectangle2D.Float(0, 0, frm.getWidth(), frm.getHeight(), 30, 30);
        AWTUtilities.setWindowShape(frm, shape);
    }//GEN-LAST:event_btnEliminarIntervencionActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        try {
            Desktop.getDesktop().browse(new URI("http://www.google.com.uy"));
        } catch (Exception ex) {
        }
    }//GEN-LAST:event_jButton1ActionPerformed

    private void btnNuevoCasoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNuevoCasoActionPerformed
        ChequearDatos frm = new ChequearDatos('n');
        frm.setLocationRelativeTo(null);
        frm.setImagen("/imagenes/fondo.png");
        frm.setIconImage(icono);
        frm.setVisible(true);
        Shape shape = new RoundRectangle2D.Float(0, 0, frm.getWidth(), frm.getHeight(), 30, 30);
        AWTUtilities.setWindowShape(frm, shape);
    }//GEN-LAST:event_btnNuevoCasoActionPerformed

    private void btnNuevaActualizacionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNuevaActualizacionActionPerformed
        NuevaActualizacion frm = new NuevaActualizacion();
        frm.setLocationRelativeTo(null);
        frm.setImagen("/imagenes/fondo.png");
        frm.setIconImage(icono);
        frm.setVisible(true);
        Shape shape = new RoundRectangle2D.Float(0, 0, frm.getWidth(), frm.getHeight(), 30, 30);
        AWTUtilities.setWindowShape(frm, shape);
    }//GEN-LAST:event_btnNuevaActualizacionActionPerformed

    private void btnModificarCasoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnModificarCasoActionPerformed
        BuscarCaso frm = new BuscarCaso(null, "mc");
        frm.setLocationRelativeTo(null);
        frm.setImagen("/imagenes/fondo.png");
        frm.setIconImage(icono);
        frm.setVisible(true);
        Shape shape = new RoundRectangle2D.Float(0, 0, frm.getWidth(), frm.getHeight(), 30, 30);
        AWTUtilities.setWindowShape(frm, shape);
    }//GEN-LAST:event_btnModificarCasoActionPerformed

    private void btnConsultarCasoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnConsultarCasoActionPerformed
        BuscarCaso frm = new BuscarCaso(null, "cc");
        frm.setLocationRelativeTo(null);
        frm.setImagen("/imagenes/fondo.png");
        frm.setIconImage(icono);
        frm.setVisible(true);
        Shape shape = new RoundRectangle2D.Float(0, 0, frm.getWidth(), frm.getHeight(), 30, 30);
        AWTUtilities.setWindowShape(frm, shape);
    }//GEN-LAST:event_btnConsultarCasoActionPerformed

    private void btnModificarActualizacionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnModificarActualizacionActionPerformed
        BuscarCaso frm = new BuscarCaso(null, "ma");
        frm.setLocationRelativeTo(null);
        frm.setImagen("/imagenes/fondo.png");
        frm.setIconImage(icono);
        frm.setVisible(true);
        Shape shape = new RoundRectangle2D.Float(0, 0, frm.getWidth(), frm.getHeight(), 30, 30);
        AWTUtilities.setWindowShape(frm, shape);
    }//GEN-LAST:event_btnModificarActualizacionActionPerformed

    private void btnModificarDatosPersonalesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnModificarDatosPersonalesActionPerformed
        ModificarDatosPersonales frm = new ModificarDatosPersonales();
        frm.setLocationRelativeTo(null);
        frm.setImagen("/imagenes/fondo.png");
        frm.setIconImage(icono);
        frm.setVisible(true);
        Shape shape = new RoundRectangle2D.Float(0, 0, frm.getWidth(), frm.getHeight(), 30, 30);
        AWTUtilities.setWindowShape(frm, shape);
    }//GEN-LAST:event_btnModificarDatosPersonalesActionPerformed

    private void btnEliminarLlamadoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEliminarLlamadoActionPerformed
        EliminarLlamado frm = new EliminarLlamado();
        frm.setLocationRelativeTo(null);
        frm.setImagen("/imagenes/fondo.png");
        frm.setIconImage(icono);
        frm.setVisible(true);
        Shape shape = new RoundRectangle2D.Float(0, 0, frm.getWidth(), frm.getHeight(), 30, 30);
        AWTUtilities.setWindowShape(frm, shape);
    }//GEN-LAST:event_btnEliminarLlamadoActionPerformed

    private void btnNuevaIntervencionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNuevaIntervencionActionPerformed
        NuevaIntervencion frm = new NuevaIntervencion();
        frm.setLocationRelativeTo(null);
        frm.setImagen("/imagenes/fondo.png");
        frm.setIconImage(icono);
        frm.setVisible(true);
        Shape shape = new RoundRectangle2D.Float(0, 0, frm.getWidth(), frm.getHeight(), 30, 30);
        AWTUtilities.setWindowShape(frm, shape);
    }//GEN-LAST:event_btnNuevaIntervencionActionPerformed

    private void btnEliminarSeguimientoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEliminarSeguimientoActionPerformed
        BuscarCaso frm = new BuscarCaso(null, "es");
        frm.setLocationRelativeTo(null);
        frm.setImagen("/imagenes/fondo.png");
        frm.setIconImage(icono);
        frm.setVisible(true);
        Shape shape = new RoundRectangle2D.Float(0, 0, frm.getWidth(), frm.getHeight(), 30, 30);
        AWTUtilities.setWindowShape(frm, shape);
    }//GEN-LAST:event_btnEliminarSeguimientoActionPerformed

    private void btnModificarSeguimientoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnModificarSeguimientoActionPerformed
        BuscarCaso frm = new BuscarCaso(null, "ms");
        frm.setLocationRelativeTo(null);
        frm.setImagen("/imagenes/fondo.png");
        frm.setIconImage(icono);
        frm.setVisible(true);
        Shape shape = new RoundRectangle2D.Float(0, 0, frm.getWidth(), frm.getHeight(), 30, 30);
        AWTUtilities.setWindowShape(frm, shape);
    }//GEN-LAST:event_btnModificarSeguimientoActionPerformed

    private void btnManual8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnManual8ActionPerformed
        EstadisticaCasos frm = new EstadisticaCasos();
        frm.setLocationRelativeTo(null);
        frm.setIconImage(icono);
        frm.setImagen("/imagenes/fondo.png");
        frm.setVisible(true);
        Shape shape = new RoundRectangle2D.Float(0, 0, frm.getWidth(), frm.getHeight(), 30, 30);
        AWTUtilities.setWindowShape(frm, shape);
    }//GEN-LAST:event_btnManual8ActionPerformed

    private void btnInformeLlamados1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnInformeLlamados1ActionPerformed
        EstadisticaIntervencion frm = new EstadisticaIntervencion();
        frm.setLocationRelativeTo(null);
        frm.setIconImage(icono);
        frm.setImagen("/imagenes/fondo.png");
        frm.setVisible(true);
        Shape shape = new RoundRectangle2D.Float(0, 0, frm.getWidth(), frm.getHeight(), 30, 30);
        AWTUtilities.setWindowShape(frm, shape);
    }//GEN-LAST:event_btnInformeLlamados1ActionPerformed

    private void btnImpimirPlanilla1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnImpimirPlanilla1ActionPerformed
        EstadisticaOtrosDatos frm = new EstadisticaOtrosDatos();
        frm.setLocationRelativeTo(null);
        frm.setIconImage(icono);
        frm.setImagen("/imagenes/fondo.png");
        frm.setVisible(true);
        Shape shape = new RoundRectangle2D.Float(0, 0, frm.getWidth(), frm.getHeight(), 30, 30);
        AWTUtilities.setWindowShape(frm, shape);
    }//GEN-LAST:event_btnImpimirPlanilla1ActionPerformed

    private void btnModificarLlamado1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnModificarLlamado1ActionPerformed
        EstadisticaDatosNinio frm = new EstadisticaDatosNinio();
        frm.setLocationRelativeTo(null);
        frm.setIconImage(icono);
        frm.setImagen("/imagenes/fondo.png");
        frm.setVisible(true);
        Shape shape = new RoundRectangle2D.Float(0, 0, frm.getWidth(), frm.getHeight(), 30, 30);
        AWTUtilities.setWindowShape(frm, shape);
    }//GEN-LAST:event_btnModificarLlamado1ActionPerformed

    private void btnEliminarLlamado1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEliminarLlamado1ActionPerformed
        EstadisticaGeograficas frm = new EstadisticaGeograficas();
        frm.setLocationRelativeTo(null);
        frm.setIconImage(icono);
        frm.setImagen("/imagenes/fondo.png");
        frm.setVisible(true);
        Shape shape = new RoundRectangle2D.Float(0, 0, frm.getWidth(), frm.getHeight(), 30, 30);
        AWTUtilities.setWindowShape(frm, shape);
    }//GEN-LAST:event_btnEliminarLlamado1ActionPerformed

    private void btnNuevoLlamado1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNuevoLlamado1ActionPerformed
        EstadisticaCasosMotivo frm = new EstadisticaCasosMotivo();
        frm.setLocationRelativeTo(null);
        frm.setIconImage(icono);
        frm.setImagen("/imagenes/fondo.png");
        frm.setVisible(true);
        Shape shape = new RoundRectangle2D.Float(0, 0, frm.getWidth(), frm.getHeight(), 30, 30);
        AWTUtilities.setWindowShape(frm, shape);
    }//GEN-LAST:event_btnNuevoLlamado1ActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnAcercade;
    private javax.swing.JButton btnAyuda;
    private javax.swing.JButton btnCasos;
    private javax.swing.JButton btnCerrar;
    private javax.swing.JButton btnConsultarCaso;
    private javax.swing.JButton btnEliminarIntervencion;
    private javax.swing.JButton btnEliminarLlamado;
    private javax.swing.JButton btnEliminarLlamado1;
    private javax.swing.JButton btnEliminarSeguimiento;
    private javax.swing.JButton btnEstadisticas;
    private javax.swing.JButton btnImpimirPlanilla;
    private javax.swing.JButton btnImpimirPlanilla1;
    private javax.swing.JButton btnInformeLlamados;
    private javax.swing.JButton btnInformeLlamados1;
    private javax.swing.JButton btnIntervenciones;
    private javax.swing.JButton btnLlamados;
    private javax.swing.JButton btnManual;
    private javax.swing.JButton btnManual8;
    private javax.swing.JButton btnMinimizar;
    private javax.swing.JButton btnModificarActualizacion;
    private javax.swing.JButton btnModificarCaso;
    private javax.swing.JButton btnModificarDatosPersonales;
    private javax.swing.JButton btnModificarIntervencion;
    private javax.swing.JButton btnModificarLlamado;
    private javax.swing.JButton btnModificarLlamado1;
    private javax.swing.JButton btnModificarSeguimiento;
    private javax.swing.JButton btnNuevaActualizacion;
    private javax.swing.JButton btnNuevaIntervencion;
    private javax.swing.JButton btnNuevoCaso;
    private javax.swing.JButton btnNuevoLlamado;
    private javax.swing.JButton btnNuevoLlamado1;
    private javax.swing.JButton btnNuevoSeguimiento;
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLayeredPane jLayeredPane1;
    private javax.swing.JPanel jPanel1;
    private utilidades.JPanelConFondo pnlAyuda;
    private utilidades.JPanelConFondo pnlCasos;
    private utilidades.JPanelConFondo pnlEstadisticas;
    private utilidades.JPanelConFondo pnlIntervenciones;
    private utilidades.JPanelConFondo pnlLlamadas;
    // End of variables declaration//GEN-END:variables

    private void activarBoton(int numero) {
        switch (numero) {
            case 1:
                casos = true;
                intervenciones = false;
                llamados = false;
                estadisticas = false;
                ayuda = false;

                btnCasos.setIcon(new ImageIcon(getClass().getResource("/imagenes/casos-activo.png")));
                btnIntervenciones.setIcon(new ImageIcon(getClass().getResource("/imagenes/intervenciones.png")));
                btnLlamados.setIcon(new ImageIcon(getClass().getResource("/imagenes/llamados.png")));
                btnEstadisticas.setIcon(new ImageIcon(getClass().getResource("/imagenes/estadisticas.png")));
                btnAyuda.setIcon(new ImageIcon(getClass().getResource("/imagenes/ayuda.png")));

                jLayeredPane1.moveToFront(pnlCasos);

                pnlCasos.setVisible(true);
                pnlIntervenciones.setVisible(false);
                pnlLlamadas.setVisible(false);
                pnlEstadisticas.setVisible(false);
                pnlAyuda.setVisible(false);
                break;
            case 2:
                casos = false;
                intervenciones = true;
                llamados = false;
                estadisticas = false;
                ayuda = false;

                btnCasos.setIcon(new ImageIcon(getClass().getResource("/imagenes/casos.png")));
                btnIntervenciones.setIcon(new ImageIcon(getClass().getResource("/imagenes/intervenciones-activo.png")));
                btnLlamados.setIcon(new ImageIcon(getClass().getResource("/imagenes/llamados.png")));
                btnEstadisticas.setIcon(new ImageIcon(getClass().getResource("/imagenes/estadisticas.png")));
                btnAyuda.setIcon(new ImageIcon(getClass().getResource("/imagenes/ayuda.png")));

                jLayeredPane1.moveToFront(pnlIntervenciones);

                pnlCasos.setVisible(false);
                pnlIntervenciones.setVisible(true);
                pnlLlamadas.setVisible(false);
                pnlEstadisticas.setVisible(false);
                pnlAyuda.setVisible(false);
                break;
            case 3:
                casos = false;
                intervenciones = false;
                llamados = true;
                estadisticas = false;
                ayuda = false;

                btnCasos.setIcon(new ImageIcon(getClass().getResource("/imagenes/casos.png")));
                btnIntervenciones.setIcon(new ImageIcon(getClass().getResource("/imagenes/intervenciones.png")));
                btnLlamados.setIcon(new ImageIcon(getClass().getResource("/imagenes/llamados-activo.png")));
                btnEstadisticas.setIcon(new ImageIcon(getClass().getResource("/imagenes/estadisticas.png")));
                btnAyuda.setIcon(new ImageIcon(getClass().getResource("/imagenes/ayuda.png")));

                jLayeredPane1.moveToFront(pnlLlamadas);

                pnlCasos.setVisible(false);
                pnlIntervenciones.setVisible(false);
                pnlLlamadas.setVisible(true);
                pnlEstadisticas.setVisible(false);
                pnlAyuda.setVisible(false);
                break;
            case 4:
                casos = false;
                intervenciones = false;
                llamados = false;
                estadisticas = true;
                ayuda = false;

                btnCasos.setIcon(new ImageIcon(getClass().getResource("/imagenes/casos.png")));
                btnIntervenciones.setIcon(new ImageIcon(getClass().getResource("/imagenes/intervenciones.png")));
                btnLlamados.setIcon(new ImageIcon(getClass().getResource("/imagenes/llamados.png")));
                btnEstadisticas.setIcon(new ImageIcon(getClass().getResource("/imagenes/estadisticas-activo.png")));
                btnAyuda.setIcon(new ImageIcon(getClass().getResource("/imagenes/ayuda.png")));

                jLayeredPane1.moveToFront(pnlEstadisticas);

                pnlCasos.setVisible(false);
                pnlIntervenciones.setVisible(false);
                pnlLlamadas.setVisible(false);
                pnlEstadisticas.setVisible(true);
                pnlAyuda.setVisible(false);
                break;
            case 5:
                casos = false;
                intervenciones = false;
                llamados = false;
                estadisticas = false;
                ayuda = true;

                btnCasos.setIcon(new ImageIcon(getClass().getResource("/imagenes/casos.png")));
                btnIntervenciones.setIcon(new ImageIcon(getClass().getResource("/imagenes/intervenciones.png")));
                btnLlamados.setIcon(new ImageIcon(getClass().getResource("/imagenes/llamados.png")));
                btnEstadisticas.setIcon(new ImageIcon(getClass().getResource("/imagenes/estadisticas.png")));
                btnAyuda.setIcon(new ImageIcon(getClass().getResource("/imagenes/ayuda-activo.png")));

                jLayeredPane1.moveToFront(pnlAyuda);

                pnlCasos.setVisible(false);
                pnlIntervenciones.setVisible(false);
                pnlLlamadas.setVisible(false);
                pnlEstadisticas.setVisible(false);
                pnlAyuda.setVisible(true);
                break;
        }
    }
}
